package com.ls.controller.feedbackrecord;

import com.ls.service.IFeedbackRecordService;
import com.ls.utils.ResultData;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户反馈 前端控制器
 * </p>
 *
 * @author pengyu
 * @since 2024-10-12
 */
@Api(value = "用户反馈app相关接口", tags = "用户反馈app相关接口")
@RestController
@RequiredArgsConstructor
@RequestMapping("/feedbackRecordApp")
public class FeedbackRecordAppController {
    private final IFeedbackRecordService service;
    /**
     * 新增用户反馈
     */
    @PostMapping("add")
    public ResultData add(@RequestParam String content) {
        return service.add(content);
    }
}
